[database]  #适用于被 viper解析的配置项
    pkg = "./xml"
    driverName = "mysql"
    dsn = "root:root@(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local"
    maxOpenConn = 5 #默认为5
    maxIdleConn = 10 #默认为10
    connMaxLifetime = 5 #默认5分钟
    connMaxIdleTime = 5 #默认5分钟

[database.logger]
    printSql = true
    printXml = false
    path     = "./" #""       #日志文件存放的目录
    linkName = "./rotate.log" #为最新的日志建立软连接
    interval = 2              #日志分割的时间，隔多久分割一次
    maxAge   = 180            #日志文件清理前的最长保存时间
    count    = -1             #日志文件清理前最多保存的个数 (-1,表示不使用此配置)

[redis]
  db = 0
  addr = "127.0.0.1:6379"
  password =  ""

[zap]
  level =  "info"
  format = "console"
  prefix = '[]'
  director = "log"
  link-name = "latest_log" #日志软链接
  showLine = false
  encode-level = "LowercaseColorLevelEncoder" #LowercaseColorLevelEncoder
  stacktrace-key = "stacktrace" #stacktrace
  log-in-console = true

[gen]
   driverName = "mysql"
   dbName     = "test"
   dsn        = "root:root@(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local"
   table      = ""
   tagKey     = "json,db"